//
//  Material.cpp
//  Ray Tracer
//
//  Created by Kaila, Ashish on 3/23/13.
//  Copyright (c) 2013 Kaila, Ashish. All rights reserved.
//

#include "Material.h"

Material::Material (double specularExp,
                    double diffuseReflectivityFactor,
                    double specularReflectivityFactor,
                    double refractiveIndex)
: _specularExp(specularExp),
  _diffuseReflectivityFactor(diffuseReflectivityFactor),
  _specularReflectivityFactor(specularReflectivityFactor),
  _refractiveIndex(refractiveIndex),
  _glossFactor(0)
{
    
}

double Material::getSpecularExp() const
{
    return _specularExp;
}

double Material::getDiffuseReflectivityFactor() const
{
    return _diffuseReflectivityFactor;
}

double Material::getSpecularReflectivityFactor() const
{
    return _specularReflectivityFactor;
}

double Material::getRefractiveIndex() const
{
    return _refractiveIndex;
}

void Material::setGlossFactor(unsigned int glossFactor)
{
    _glossFactor = glossFactor;
}

unsigned int Material::getGlossFactor() const
{
    return _glossFactor;
}